package com.itheima.ssm.service;

import com.itheima.ssm.domain.Permission;

import java.util.List;

public interface IPermissionService {
    //    查询所有权限
    List<Permission> findAll() throws Exception;

    //    权限添加
    void save(Permission permission) throws Exception;

    //根据Id查询资源权限详情
    Permission findById(String id) throws Exception;

    //    根据资源ID删除资源全系
    void deletePermission(String id) throws Exception;
}
